//
//  HomeDetailViewController.swift
//  SwiftQiushi
//
//  Created by ch on 2020/10/19.
//  Copyright © 2020 ch. All rights reserved.
//

import UIKit

class HomeDetailViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "详情"
        view.backgroundColor = UIColor.gray
        
        /*
        let btn = UIButton(type: .contactAdd)
        btn.frame = CGRect(x: 100, y: 100, width: 200, height: 200)
        btn.addTarget(self, action: #selector(btnAction), for: .touchUpInside)
        view.addSubview(btn)
         */
    }
    
    @objc func btnAction(){
        
        self.navigationController?.pushViewController(HomeDetailViewController(), animated: true)
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
